package com.cz.video.website.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cz.video.common.core.mapper.BaseMapperPlus;
import com.cz.video.website.domain.WebsiteFollow;
import com.cz.video.website.domain.bo.WebsiteFollowBo;
import com.cz.video.website.domain.vo.WebsiteFollowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 关注 Mapper 接口
 * </p>
 *
 * @author
 * @since 2023-07-09
 */
public interface WebsiteFollowMapper extends BaseMapperPlus<WebsiteFollowMapper,WebsiteFollow, WebsiteFollowVo> {
    /**
     * 根据条件分页查询关注数据
     *
     * @param queryWrapper 查询条件
     * @param follow
     * @return 课程场景数据分页信息
     */
    Page<WebsiteFollowVo> selectPageList(@Param("page") Page<WebsiteFollow> page,
                                        @Param(Constants.WRAPPER) Wrapper<WebsiteFollow> queryWrapper,
                                         WebsiteFollowBo follow);

    /**
     * 根据条件查询关注数据
     *
     * @param queryWrapper 查询条件
     * @return 关注数据集合信息
     */
    List<WebsiteFollowVo> selectWebsiteFollowList(@Param(Constants.WRAPPER) Wrapper<WebsiteFollow> queryWrapper);

}
